CC          = @CC@
AR          = @AR@
LIBNAME     = @LIBNAME@
srcdir      = @srcdir@

INCLUDES    = -I@MPI_INCLUDE_DIR@ -I${srcdir}/../include -I../include -I../../include -I${srcdir}/../../../../include -I../../../../include
CFLAGS      = @CPPFLAGS@ @CFLAGS@ $(INCLUDES)

@VPATH@

AD_HFS_OBJECTS = ad_hfs_read.o  \
      ad_hfs_open.o ad_hfs_write.o \
      ad_hfs_fcntl.o \
      ad_hfs_resize.o \
      ad_hfs.o

default: $(LIBNAME)

.c.o:
	$(CC) $(CFLAGS) -c $<

$(LIBNAME): $(AD_HFS_OBJECTS)
	$(AR) $(LIBNAME) $(AD_HFS_OBJECTS)

clean:
	@rm -f *.o
